package com.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.demo.dao.SysMenuMapper;
import com.demo.model.SysMenu;
import com.demo.service.MenuService;

@Service
public class MenuServiceImpl implements MenuService{
	@Autowired
	private SysMenuMapper menuMapper;
	@Override
	public List<SysMenu> findByRoleId(Integer roleId) {
		return menuMapper.selectByRoleId(roleId);
	}

	@Override
	public List<SysMenu> findAll(Integer roleId) {
		return menuMapper.selectAll(roleId);
	}

}
